#import "ArchiveHeader.h"

@implementation ArchiveHeader

-(id) init
{
	self = [super init];
	
	if (self)
	{
		_id = nil;
		_version = 0;
		_totalFiles = 0;
	}
	
	return self;
}

-(id) initWithId:(NSString*) identifier andVersion:(int) version andTotalFiles:(int) totalFiles
{
	self = [super init];
	
	if (self) 
	{
		[identifier retain];
		[_id release];
		
		_id = identifier;
		_version = version;
		_totalFiles = totalFiles;
	}
	return self;
}

-(void) dealloc
{
	[_id release];
	[super dealloc];
}


// renamed all the properties accessor
@synthesize ID = _id;
@synthesize Version = _version;
@synthesize TotalFiles = _totalFiles;
@end
